#ifndef QSTRINGHANDLE_H
#define QSTRINGHANDLE_H
#include <QString>
#include <QStringList>
#include <QDebug>
#include <QVariant>
#include <QMetaType>

#define GESS_FLD_SEPERATOR  "#"  //字段分隔
#define GESS_VAL_SEPERATOR  "="  //键值分隔

namespace ApConst
{

    //ArrayListMsg/HashtableMsg
    //支持的最大层次
    const int SEPARATOR_MAX_LEVEL = 4;
    //多级分隔符
    const QString SEPARATOR_RECORD[SEPARATOR_MAX_LEVEL] = { "∧", "｜", "ˇ","¨"};

    const unsigned short gc_ucPrecision = 2;	//精度 小数点后位数
}

namespace strutils {

    QStringList explode(const QString &sSeparator, const QString &sString);

    QString variantToQString(const QVariant data);
}

class QStringHandle
{
public:
    QStringHandle();
};

#endif // QSTRINGHANDLE_H
